//using System;
//using System.Collections.Generic;
//using System.Linq;
//using Microsoft.Xna.Framework;
//using Microsoft.Xna.Framework.Audio;
//using Microsoft.Xna.Framework.Content;
//using Microsoft.Xna.Framework.GamerServices;
//using Microsoft.Xna.Framework.Graphics;
//using Microsoft.Xna.Framework.Input;
//using Microsoft.Xna.Framework.Media;
//using Microsoft.Xna.Framework.Net;
//using Microsoft.Xna.Framework.Storage;


//namespace xna_game_engine.source
//{
//    /// <summary>
//    /// This is a game component that implements IUpdateable.
//    /// </summary>
//    public class MessageBox
//    {
//        // Members
//        private Texture2D mBoxTexture;
//        private TongaTimer mDisplayTimer;
//        private List<string> mDisplayStrings;
//        private Vector2 mPosition;
//        private Vector2 mScale;

//        // Functions
//        public MessageBox()
//        {
//            // TODO: Construct any child components here
//            mDisplayTimer = new TongaTimer(2.0);
//            mPosition = new Vector2(0.0f, 0.0f);
//            mDisplayStrings = new List<string>();
//            mScale = new Vector2(1.0f, 0.20f);
//        }

//        public void Initialize()
//        {
//            // TODO: Add your initialization code here
//        }

//        public void Update(GameTime gameTime)
//        {
//        }

//        // Other functions
//        public void LoadContent()
//        {
//            /mBoxTexture = GameGlobals.Content.Load<Texture2D>("sprites\\message_box");
//        }

//        public void AddEntry(string entry)
//        {
//            mDisplayStrings.Add(entry);
//            if (mDisplayStrings.Count > 6)
//            {
//                mDisplayStrings.RemoveAt(0);
//            }
//        }

//        public void Draw()
//        {          
//            GameSystems.Graphics.SpriteBatch.Draw(mBoxTexture, mPosition, null, Color.White, 0.0f, Vector2.Zero, mScale, SpriteEffects.None, 0.0f);
//            Vector2 textStartPos = mPosition + new Vector2(0.0f, 20.0f );
//            for (int i = 0; i < mDisplayStrings.Count; i++)
//            {
//                Vector2 lineHeight = GameSystems.Graphics.SpriteFont.MeasureString(mDisplayStrings[i]);
//                GameSystems.Graphics.DrawText(mDisplayStrings[i], mPosition + new Vector2(25.0f, 5.0f + (lineHeight.Y * i)), Color.White);
//            }
//        }
//    }
//}